-- use_spell
-- created by panyl
-- 使用卷轴

return {
    doAction = function(action)
        local pos = action.pos;
        if pos > GRID_SIZE then
            pos = nil;
        end

        return SpellM.useSpell(action.data, pos);
    end,
};
